package com.yeebo.dao.user;

import com.yeebo.model.user.UserToken;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserTokenDao {

    int add(UserToken userToken);

    int update(UserToken userToken);

    UserToken getTokenByUserInfo(@Param("userPlatform") Integer userPlatform,
                                 @Param("userId") Long userId);

    UserToken selectByTokenInfo(@Param("userPlatform") Integer userPlatform,
                                @Param("userToken") String userToken);

}
